package router

import (
	"github.com/kataras/iris/v12"
	"wit-admin-go/system/app/controller"
)

func Menu(app iris.Party) {
	menu := app.Party("/menu")
	{
		menu.Post("/createMenu", controller.Menu.CreateMenu).Name = "创建菜单"
		menu.Get("/getMenuById", controller.Menu.GetMenuById).Name = "菜单详情"
		menu.Get("/getMenuList", controller.Menu.GetList).Name = "菜单列表"
		menu.Get("/getTreeList", controller.Menu.GetTreeList).Name = "获取菜单树"
		menu.Delete("/deleteMenu", controller.Menu.DeleteMenu).Name = "删除菜单"
		menu.Delete("/removeMenu", controller.Menu.RemoveMenu).Name = "永久删除菜单"
		menu.Put("/updateMenu", controller.Menu.UpdateMenu).Name = "更新菜单"

	}
}
